package test;

import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;

public class test {
	public static void main(String args[]) {
		String html = "http://www.baidu.com";
		if (html == null)
			return;
		try {
			Document doc = Jsoup.connect(html).get();
			Element link = doc.select("a").first();
			String fa = link.text();
			System.out.println(fa);
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
}
